package mammuthus.tool

import java.io.File
import org.codehaus.plexus.archiver.tar.TarGZipUnArchiver

/**
 * 4/2/15 WilliamZhu(allwefantasy@gmail.com)
 */
object TarGzip {
  def extractTarGzip(sourceFile: File, destDir: File) = {
    val ua = new TarGZipUnArchiver()
    ua.setSourceFile(sourceFile)
    ua.setDestDirectory(destDir)
    ua.extract()
  }
}
